package global

import (
	"github.com/go-redis/redis/v8"
	"gorm.io/gorm"
	"server/utils/conf"
	"time"
)

const (
	// Version golyadmin version info
	GL_VERSION = "1.0.1"
)

var (
	GL_DB     *gorm.DB      //默认数据库
	GL_REDIS  *redis.Client //Redis客户端
	GL_CONFIG conf.Config   //服务端配置

)

// GetTime 获取当前时间戳
func GetTime() int64 {
	return time.Now().Unix()
}
